package com.dtz.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "cloud-provider-hystrix-payment8001")
public interface PaymentFeign {
	
	@GetMapping("/payment/hystrix/ok/{id}")
	public String paymentOk(@PathVariable("id") Long id);
	
	@GetMapping("/payment/hystrix/timeout/{id}")
	public String timeout(@PathVariable("id") Long id);
	
}
